﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OAuth2.Repository.Model;
using OAuth2.Framework.Model;

namespace OAuth2.Repository
{
    public interface ITokenRepository
    {
        void AddAccessToken(AccessTokenModel token);

        void AddAuthorizationGrant(AuthorizationGrantModel grant);

        AuthorizationGrant FindAuthorizationGrant(string authorizationCode);
        AuthorizationGrant FindAuthorizationGrant(string clientID, string resourceOwnerID);
        AccessTokenModel FindToken(string token);
        RefreshTokenModel FindRefreshToken(string refreshToken);
    }
}
